package com.heaven.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heaven.pojo.Intro;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;


import java.util.List;

public interface IntroMapper extends BaseMapper<Intro> {

    List<Intro> findIntro(@Param("size") int size,
                          @Param("startNum") int startNum,
                          @Param("query") String query);
    long findCount(String query);

    @Delete("delete from intro where id=#{id}")
    void deleteIntroById(Integer id);
}
